I'll go ahead and turn off my game.
And we're going to look for the zombies in our zombie spawn, Right?
And they.
Are down in server storage.
It's just one.
We have one.
Oh, we had that one from the the barrel.
The barrel will where you release the valve.
All right.
But this is the one that spawns right around in here.
These zombies.
Let's open that up.
And then.
Let's take a look at the give points.
I'll close this.
So I'm going to add the tags with code.
I could use the tag editor for this.
If I use the tag editor right here on the zombie and server storage, we would tag them, no problem
as they're spawning into the world.
But we need to remove the tags too because we'll flood our tagging system, whereas the ones are just
in the workspace.
It's not so bad because there's not going to be they're not going to be spawning over and over.
Let's go to that give point script.
I'll get that collection service here.
Game, get service, collection service.
When this script runs, when the zombie is spawned.
And in the world, we're going to add a tag, we'll say see as colon add tag.
It's that easy.
And we're going to put it on the zombie, the character.
So that's the character right there.
Script Dot Parent That's the script.
That's the parent.
Let's put our char right here.
Control Let's just spell it.
Char And then we have the hat, the tag name.
So Chuck Target.
Nice.
Now, when the zombie dies, let's remove the tag.
Right.
And that's how I was going to do.
Chuck won't attack you anymore if you die and the tag is removed.
So that was the other way I was going to do it.
Remember, we were checking the health.
Let's go down to the bottom.
Not in here.
So this is the tagging for our creator tag to see who credited who for kills.
Let's do a control V.
This isn't going to be ad tag.
This is going to be remove tag.
There we go.
And the arguments are the same.
The char and the the name of the tag.
Now, when zombies start coming out, Chuck is going to be chasing them around.
But let's make another modification on Chuck.
He dies pretty quick, right?
So we have this Chuck Norris guy right here.
He's in our workspace.
There it is.
And his humanoid has a health of 100 and a max health of 100.
Let's crank up this max health to 400.
And then where is his health?
Right up here.
Health will be 400.
He'll be able to kill more zombies, and then we're going to respawn them to Chuck's too far away from
the other zombies.
They're spawning.
Like way over here.
Right.
Let me hit a F frame in.
Yeah, This is their spawn locations, so let's put chalk there when we test things out.
Let's go to view output window.
We can clean this up and we'll go ahead and test it.
Oh, let's do a play from here.
Go to home.
Play from here.
All right.
Zombie should start spawning.
We can get rid of this, too.
We don't need.
We don't need that target.
But we can see if it starts growing.
See, there's other zombies in there.
Let's see if it's growing.
Ooh, it is growing.
A lot of zombies.
Go get them, Chuck.
Yeah.
Boom.
That's pretty good.
All right.
In the next video, we'll do a sponsor for him because he will eventually die.
We want to check to see if he's in a workspace.
If he's not, we're going to make a new chop.